<%@ page language="java" import="java.util.*"
	contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>翔云存储-注册成功</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	<script type="text/javascript">
		//window.setTimeout("window.location='login'",5000); 
		var c = 5;
		function timedCount() {
			document.getElementById('time').value = c;
			c = c - 1;
			setTimeout("timedCount()", 1000);
		}
	</script>
	<center style="margin-top:200px;">
		<div id="main">
			<span style="font-size:14px;"> <script type="text/javascript">
				function go(time, url) {
					//time设置跳转时间：秒     
					//url设置跳转网址    

					document
							.write("<div id=text>本页将在<strong id='tt'></strong>后，跳转至：<span id='link'></span></div>");
					document.getElementById("link").innerHTML = "<a href="+url+">"
							+"登录页面" + "</a>";
					$(time, url);
				}

				function $(t, url) {
					ta = t - 1;
					tb = t + "000";
					d = document.getElementById("tt");
					d.innerHTML = t;

					window.setInterval(function() {
						go_to(url);
					}, 1000);
				}
				function go_to(url) {
					d.innerHTML = ta--;
					if (ta < 0) {
						document.write("正在跳转至：<a href="+url+">登录界面</a>");
						location.href = url;
					} else {
						return;
					}
				}
			</script> 
			<script type="text/javascript">
					go(5, "logreg.jsp");
			</script> </span>
		</div>
	</center>
</body>
</html>
